﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
<table>
    <tr>
        <th>CEA</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CEA < Model.labCheckStd.CEAmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CEA)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CEA > Model.labCheckStd.CEAmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CEA)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CEA)</td>
            }
        }
        <td>ng/ml</td>
    </tr>
    <tr>
        <th>CA50</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CA50 < Model.labCheckStd.CA50min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA50)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CA50 > Model.labCheckStd.CA50max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA50)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CA50)</td>
            }
        }
        <td>ng/ml</td>
    </tr>
    <tr>
        <th>CA199</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CA199 < Model.labCheckStd.CA199min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA199)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CA199 > Model.labCheckStd.CA199max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA199)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CA199)</td>
            }
        }
        <td>ng/ml</td>
    </tr>
    <tr>
        <th>CA242</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CA242 < Model.labCheckStd.CA242min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA242)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CA242 > Model.labCheckStd.CA242max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA242)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CA242)</td>
            }
        }
        <td>kU/l</td>
    </tr>
    <tr>
        <th>CA724</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CA724 < Model.labCheckStd.CA724min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA724)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CA724 > Model.labCheckStd.CA724max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CA724)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CA724)</td>
            }
        }
        <td>U/ml</td>
    </tr>
</table>